package com.mobile.framework.util;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

public class ThreadBean implements Serializable {

	private static ThreadLocal<Object> threadLocal = new ThreadLocal<Object>();

	public HttpServletRequest getContext() {
		return (HttpServletRequest) threadLocal.get();
	}

	public void setContext(HttpServletRequest request) {
		threadLocal.set(request);
	}

	public void cleanContext() {
		threadLocal.set(null);
	}

}
